package sunbao.ido.spi;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * \* User: MeiZhongHao
 * \* Date: 2018-12-06
 * \* Time: 16:57
 * \* Description:
 * \
 */
public class CNTimeService extends ITimeService {

    public CNTimeService() {
        super.setServiceName("CN-Time-Service");
    }

    @Override
    public String getCurrentTime() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return getServiceName() + ":" + sdf.format(new Date());

    }

}